package com.demo.common.ratelimit.utils;

public class ThreadLocalUtil {
    private ThreadLocalUtil(){}
    public static final ThreadLocal<Boolean> tlBoolean = new ThreadLocal<>();

    public static void setTlBoolean(boolean b){
        tlBoolean.set(b);
    }

    public static Boolean getTlBoolean(){
        return tlBoolean.get();
    }

    public static void removeTlBoolean(){
        tlBoolean.remove();
    }

}
